﻿Option Explicit On

'*******************************************************************
' Program: xmlVisio
' Author: Albert E Edlund
' Date:
'
' Purpose:
' Working with visio drawing in an xml format
'
'
'
'*******************************************************************


Imports System.Linq
Imports System.Xml
Imports System.Xml.Serialization

Imports xmlVisio.clsXmlVisioBaseTypes



Public Class clsXmlRules

    '
    ' ruleinfo
    '
   
    '
    ' issuetarget
    '
   

    '
    ' issue
    '
  
    '
    ' RuleTest
    '
  
    '
    ' RuleFilter
    '
 
    '
    ' rule
    '
    
    '
    ' RuleSetFlags
    '
 
    '
    ' RuleSet
    '
  
    '
    ' ValidationProperties
    '
 

    '
    ' Validation
    '



#Region " xsd definitions "

    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038"), _
     System.SerializableAttribute(), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCategoryAttribute("code"), _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://schemas.microsoft.com/office/visio/2010/extension")> _
    Partial Public Class RuleInfo_Type

        Private ruleSetIDField As ULong

        Private ruleSetIDFieldSpecified As Boolean

        Private ruleIDField As ULong

        Private ruleIDFieldSpecified As Boolean

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property RuleSetID() As ULong
            Get
                Return Me.ruleSetIDField
            End Get
            Set(value As ULong)
                Me.ruleSetIDField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()> _
        Public Property RuleSetIDSpecified() As Boolean
            Get
                Return Me.ruleSetIDFieldSpecified
            End Get
            Set(value As Boolean)
                Me.ruleSetIDFieldSpecified = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property RuleID() As ULong
            Get
                Return Me.ruleIDField
            End Get
            Set(value As ULong)
                Me.ruleIDField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()> _
        Public Property RuleIDSpecified() As Boolean
            Get
                Return Me.ruleIDFieldSpecified
            End Get
            Set(value As Boolean)
                Me.ruleIDFieldSpecified = Value
            End Set
        End Property
    End Class

    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038"), _
     System.SerializableAttribute(), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCategoryAttribute("code"), _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://schemas.microsoft.com/office/visio/2010/extension")> _
    Partial Public Class IssueTarget_Type

        Private pageIDField As ULong

        Private pageIDFieldSpecified As Boolean

        Private shapeIDField As ULong

        Private shapeIDFieldSpecified As Boolean

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property PageID() As ULong
            Get
                Return Me.pageIDField
            End Get
            Set(value As ULong)
                Me.pageIDField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()> _
        Public Property PageIDSpecified() As Boolean
            Get
                Return Me.pageIDFieldSpecified
            End Get
            Set(value As Boolean)
                Me.pageIDFieldSpecified = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property ShapeID() As ULong
            Get
                Return Me.shapeIDField
            End Get
            Set(value As ULong)
                Me.shapeIDField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()> _
        Public Property ShapeIDSpecified() As Boolean
            Get
                Return Me.shapeIDFieldSpecified
            End Get
            Set(value As Boolean)
                Me.shapeIDFieldSpecified = Value
            End Set
        End Property
    End Class

    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038"), _
     System.SerializableAttribute(), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCategoryAttribute("code"), _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://schemas.microsoft.com/office/visio/2010/extension")> _
    Partial Public Class Issue_Type

        Private issueTargetField As IssueTarget_Type

        Private ruleInfoField As RuleInfo_Type

        Private idField As ULong

        Private idFieldSpecified As Boolean

        Private ignoredField As ISOBoolean

        Private ignoredFieldSpecified As Boolean

        '''<remarks/>
        Public Property IssueTarget() As IssueTarget_Type
            Get
                Return Me.issueTargetField
            End Get
            Set(value As IssueTarget_Type)
                Me.issueTargetField = Value
            End Set
        End Property

        '''<remarks/>
        Public Property RuleInfo() As RuleInfo_Type
            Get
                Return Me.ruleInfoField
            End Get
            Set(value As RuleInfo_Type)
                Me.ruleInfoField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property ID() As ULong
            Get
                Return Me.idField
            End Get
            Set(value As ULong)
                Me.idField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()> _
        Public Property IDSpecified() As Boolean
            Get
                Return Me.idFieldSpecified
            End Get
            Set(value As Boolean)
                Me.idFieldSpecified = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property Ignored() As ISOBoolean
            Get
                Return Me.ignoredField
            End Get
            Set(value As ISOBoolean)
                Me.ignoredField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()> _
        Public Property IgnoredSpecified() As Boolean
            Get
                Return Me.ignoredFieldSpecified
            End Get
            Set(value As Boolean)
                Me.ignoredFieldSpecified = Value
            End Set
        End Property
    End Class

    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038"), _
     System.SerializableAttribute(), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCategoryAttribute("code"), _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://schemas.microsoft.com/office/visio/2010/extension")> _
    Partial Public Class RuleTest_Type

        Private valueField As String

        '''<remarks/>
        <System.Xml.Serialization.XmlTextAttribute()> _
        Public Property Value() As String
            Get
                Return Me.valueField
            End Get
            Set(value As String)
                Me.valueField = Value
            End Set
        End Property
    End Class

    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038"), _
     System.SerializableAttribute(), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCategoryAttribute("code"), _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://schemas.microsoft.com/office/visio/2010/extension")> _
    Partial Public Class RuleFilter_Type

        Private valueField As String

        '''<remarks/>
        <System.Xml.Serialization.XmlTextAttribute()> _
        Public Property Value() As String
            Get
                Return Me.valueField
            End Get
            Set(value As String)
                Me.valueField = Value
            End Set
        End Property
    End Class

    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038"), _
     System.SerializableAttribute(), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCategoryAttribute("code"), _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://schemas.microsoft.com/office/visio/2010/extension")> _
    Partial Public Class Rule_Type

        Private ruleFilterField As RuleFilter_Type

        Private ruleTestField As RuleTest_Type

        Private idField As ULong

        Private idFieldSpecified As Boolean

        Private nameUField As String

        Private categoryField As String

        Private descriptionField As String

        Private ruleTargetField As Integer

        Private ruleTargetFieldSpecified As Boolean

        Private ignoredField As ISOBoolean

        Private ignoredFieldSpecified As Boolean

        '''<remarks/>
        Public Property RuleFilter() As RuleFilter_Type
            Get
                Return Me.ruleFilterField
            End Get
            Set(value As RuleFilter_Type)
                Me.ruleFilterField = Value
            End Set
        End Property

        '''<remarks/>
        Public Property RuleTest() As RuleTest_Type
            Get
                Return Me.ruleTestField
            End Get
            Set(value As RuleTest_Type)
                Me.ruleTestField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property ID() As ULong
            Get
                Return Me.idField
            End Get
            Set(value As ULong)
                Me.idField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()> _
        Public Property IDSpecified() As Boolean
            Get
                Return Me.idFieldSpecified
            End Get
            Set(value As Boolean)
                Me.idFieldSpecified = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property NameU() As String
            Get
                Return Me.nameUField
            End Get
            Set(value As String)
                Me.nameUField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property Category() As String
            Get
                Return Me.categoryField
            End Get
            Set(value As String)
                Me.categoryField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property Description() As String
            Get
                Return Me.descriptionField
            End Get
            Set(value As String)
                Me.descriptionField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property RuleTarget() As Integer
            Get
                Return Me.ruleTargetField
            End Get
            Set(value As Integer)
                Me.ruleTargetField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()> _
        Public Property RuleTargetSpecified() As Boolean
            Get
                Return Me.ruleTargetFieldSpecified
            End Get
            Set(value As Boolean)
                Me.ruleTargetFieldSpecified = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property Ignored() As ISOBoolean
            Get
                Return Me.ignoredField
            End Get
            Set(value As ISOBoolean)
                Me.ignoredField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()> _
        Public Property IgnoredSpecified() As Boolean
            Get
                Return Me.ignoredFieldSpecified
            End Get
            Set(value As Boolean)
                Me.ignoredFieldSpecified = Value
            End Set
        End Property
    End Class

    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038"), _
     System.SerializableAttribute(), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCategoryAttribute("code"), _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://schemas.microsoft.com/office/visio/2010/extension")> _
    Partial Public Class RuleSetFlags_Type

        Private hiddenField As ISOBoolean

        Private hiddenFieldSpecified As Boolean

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property Hidden() As ISOBoolean
            Get
                Return Me.hiddenField
            End Get
            Set(value As ISOBoolean)
                Me.hiddenField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()> _
        Public Property HiddenSpecified() As Boolean
            Get
                Return Me.hiddenFieldSpecified
            End Get
            Set(value As Boolean)
                Me.hiddenFieldSpecified = Value
            End Set
        End Property
    End Class

    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038"), _
     System.SerializableAttribute(), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCategoryAttribute("code"), _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://schemas.microsoft.com/office/visio/2010/extension")> _
    Partial Public Class RuleSet_Type

        Private ruleSetFlagsField As RuleSetFlags_Type

        Private ruleField() As Rule_Type

        Private idField As ULong

        Private idFieldSpecified As Boolean

        Private nameField As String

        Private nameUField As String

        Private descriptionField As String

        Private enabledField As ISOBoolean

        Private enabledFieldSpecified As Boolean

        '''<remarks/>
        Public Property RuleSetFlags() As RuleSetFlags_Type
            Get
                Return Me.ruleSetFlagsField
            End Get
            Set(value As RuleSetFlags_Type)
                Me.ruleSetFlagsField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute("Rule")> _
        Public Property Rule() As Rule_Type()
            Get
                Return Me.ruleField
            End Get
            Set(value As Rule_Type())
                Me.ruleField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property ID() As ULong
            Get
                Return Me.idField
            End Get
            Set(value As ULong)
                Me.idField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()> _
        Public Property IDSpecified() As Boolean
            Get
                Return Me.idFieldSpecified
            End Get
            Set(value As Boolean)
                Me.idFieldSpecified = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property Name() As String
            Get
                Return Me.nameField
            End Get
            Set(value As String)
                Me.nameField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property NameU() As String
            Get
                Return Me.nameUField
            End Get
            Set(value As String)
                Me.nameUField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property Description() As String
            Get
                Return Me.descriptionField
            End Get
            Set(value As String)
                Me.descriptionField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property Enabled() As ISOBoolean
            Get
                Return Me.enabledField
            End Get
            Set(value As ISOBoolean)
                Me.enabledField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()> _
        Public Property EnabledSpecified() As Boolean
            Get
                Return Me.enabledFieldSpecified
            End Get
            Set(value As Boolean)
                Me.enabledFieldSpecified = Value
            End Set
        End Property
    End Class

    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038"), _
     System.SerializableAttribute(), _
     System.Diagnostics.DebuggerStepThroughAttribute(), _
     System.ComponentModel.DesignerCategoryAttribute("code"), _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://schemas.microsoft.com/office/visio/2010/extension")> _
    Partial Public Class ValidationProperties_Type

        Private lastValidatedField As Date

        Private lastValidatedFieldSpecified As Boolean

        Private showIgnoredField As ISOBoolean

        Private showIgnoredFieldSpecified As Boolean

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property LastValidated() As Date
            Get
                Return Me.lastValidatedField
            End Get
            Set(value As Date)
                Me.lastValidatedField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()> _
        Public Property LastValidatedSpecified() As Boolean
            Get
                Return Me.lastValidatedFieldSpecified
            End Get
            Set(value As Boolean)
                Me.lastValidatedFieldSpecified = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlAttributeAttribute()> _
        Public Property ShowIgnored() As ISOBoolean
            Get
                Return Me.showIgnoredField
            End Get
            Set(value As ISOBoolean)
                Me.showIgnoredField = Value
            End Set
        End Property

        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()> _
        Public Property ShowIgnoredSpecified() As Boolean
            Get
                Return Me.showIgnoredFieldSpecified
            End Get
            Set(value As Boolean)
                Me.showIgnoredFieldSpecified = Value
            End Set
        End Property
    End Class



#End Region


End Class
